<?php
namespace Admin\Model;
use Think\Model;
class UserViewModel extends ViewModel{
	public $viewFields = array(
			'Blog'=>array('id','name','title'),
			'Category'=>array('title'=>'category_name', '_on'=>'Blog.category_id=Category.id'),
			'User'=>array('name'=>'username', '_on'=>'Blog.user_id=User.id'),
	);
}
?>